package com.ys.entity.hr;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="TWL_StockBorrowDetail", catalog="Id")
public class TwlStockBorrowDetail extends BaseEntity<TwlStockBorrowDetail> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="BidStockBorrow", nameJava="bidStockBorrow", typeDataBase="varchar")
	private String bidStockBorrow;
	@YsField(nameDataBase="StockId", nameJava="stockId", typeDataBase="bigint")
	private Long stockId;
	@YsField(nameDataBase="Num", nameJava="num", typeDataBase="int")
	private Integer num;
	@YsField(nameDataBase="State", nameJava="state", typeDataBase="tinyint")
	private Integer state;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="RebakTime", nameJava="rebakTime", typeDataBase="datetime")
	private Date rebakTime;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TwlStockBorrowDetail setId(Long id) {
		this.id = id;
		return this;
	}
	public String getBidStockBorrow() {
		return bidStockBorrow;
	}
	public TwlStockBorrowDetail setBidStockBorrow(String bidStockBorrow) {
		this.bidStockBorrow = bidStockBorrow;
		return this;
	}
	public Long getStockId() {
		return stockId;
	}
	public TwlStockBorrowDetail setStockId(Long stockId) {
		this.stockId = stockId;
		return this;
	}
	public Integer getNum() {
		return num;
	}
	public TwlStockBorrowDetail setNum(Integer num) {
		this.num = num;
		return this;
	}
	public Integer getState() {
		return state;
	}
	public TwlStockBorrowDetail setState(Integer state) {
		this.state = state;
		return this;
	}
	public Date getRebakTime() {
		return rebakTime;
	}
	public TwlStockBorrowDetail setRebakTime(Date rebakTime) {
		this.rebakTime = rebakTime;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TwlStockBorrowDetail setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TwlStockBorrowDetail setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TwlStockBorrowDetail setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TwlStockBorrowDetail twlStockBorrowDetail(
		String bidStockBorrow,
		Long stockId,
		Integer num,
		Integer state,
		Date rebakTime,
		Integer status
			) {
		TwlStockBorrowDetail entity = new TwlStockBorrowDetail();
		entity.setBidStockBorrow(bidStockBorrow);
		entity.setStockId(stockId);
		entity.setNum(num);
		entity.setState(state);
		entity.setRebakTime(rebakTime);
		entity.setStatus(status);
		return entity;
	}
}